import { HttpService } from '@/utils/http';
import { API } from '@/utils/configs';
import type { IHomeData } from '@/types/data';
import type { ReturnResult } from '@/types/http';

class IndexHttpService extends HttpService {
  getListDatas(cityId: string) {
    return this.axiosGet<{ cityId: string }, ReturnResult<IHomeData>>({
      url: API.GET_HOME_DATAS,
      data: {
        cityId,
      },
    });
  }
}

export const indexHttpService = new IndexHttpService();
